package org.dromara.chicken.domain.bo;

import org.dromara.chicken.domain.FarmProcess;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 饲料加工业务对象 farm_process
 *
 * @author Mr Lei QQ:235921049
 * @date 2024-06-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = FarmProcess.class, reverseConvertGenerate = false)
public class FarmProcessBo extends BaseEntity {

    /**
     *
     */
    @NotBlank(message = "不能为空", groups = { EditGroup.class })
    private String id;

    /**
     * 订单编号
     */
    @NotBlank(message = "订单编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String orderNo;

    /**
     * 工人
     */
    private Long workerId;

    /**
     * 自制料id
     */
    private Long productId;

    /**
     * 自制料单价
     */
    private BigDecimal price;

    /**
     * 总数
     */
    private BigDecimal totalNum;

    /**
     * 总价格
     */
    private BigDecimal totalMoney;

    /**
     * 加工时间
     */
    @NotNull(message = "加工时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long operatorTime;

    /**
     * 用途
     */
    @NotBlank(message = "用途不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    /**
     * 审核状态
     */
    private Integer auditStatus;

    /**
     * 审核时间
     */
    private Date auditTime;

    /**
     * 审核备注
     */
    private String auditRemark;

    /**
     * 审核人
     */
    private Long auditBy;


}
